/*
 * @Author: Penk
 * @LastEditors: Penk
 * @LastEditTime: 2022-12-14 21:19:13
 * @FilePath: \penk-ui\src\index.ts
 * @email: 492934056@qq.com
 */

// 引入封装好的组件
import PenkButton from "./components/PenkButton/PenkButton.vue";
import PenkFooter from "./components/PenkFooter/PenkFooter.vue";
import PenkForm from "./components/PenkForm/PenkForm.vue";
import PenkSearch from "./components/PenkSearch/PenkSearch.vue";
import PenkTable from "./components/PenkTable/PenkTable.vue";

let arr = [PenkButton, PenkFooter, PenkForm, PenkSearch, PenkTable]; // 如果有多个其它组件,都可以写到这个数组里

// 批量组件注册
const install = function (Vue: any) {
  arr.forEach((com) => {
    Vue.component(com.name, com);
  });
};

export default install; // 这个方法使用的时候可以被use调用
